﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace YLServerInterface.NavigateWindows
{
    /// <summary>
    /// Interaction logic for frmImageOp.xaml
    /// </summary>
    public partial class frmImageOp : Page
    {
        ////图片切割控件的宽。高被强制设置为自动，否则图片无法全部显示。
        //int cutterItemWidth;
        ////要切割的宽，像素
        //double cutWidth;
        ////要切割的高，像素
        //double cutHeight;
        //// 图片fullname 与修改后的图片fullname （保存位置）
        //List<Tuple<string, string>> pathPair;
        ///// <summary>
        ///// 出入初始化参数
        ///// </summary>
        ///// <param name="cutterItemW"></param>
        ///// <param name="cutW"></param>
        ///// <param name="cutH"></param>
        ///// <param name="pairs"></param>
        //public frmImageOp(int cutterItemW, double cutW, double cutH, List<Tuple<string, string>> pairs)
        //{
        //    InitializeComponent();
        //    cutterItemWidth = cutterItemW;
        //    cutWidth = cutW;
        //    cutHeight = cutH;
        //    pathPair = pairs;
        //}
        //for test
        public frmImageOp()
        {
            InitializeComponent();

        }
        private void btnMake_Click(object sender, RoutedEventArgs e)
        {
            //cutter1.imageCutter1.Cut();
            //imageCutter2.Cut();
            //  imageCutter3.Cut();
            //imageCutter4.Cut();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //生成图片路径


            ////var items = from pp in pathPair
            ////            select new UserControls.ImageCutterWrapper
            ////            {
            ////                Width = cutterItemWidth,
            ////                RectWidth = cutWidth,
            ////                RectHeight = cutHeight,
            ////                ImgPath = pp.Item1,
            ////                SaveImgPath = pp.Item2
            ////            };
            ////foreach (var item in items)
            ////{
            ////    wp.Children.Add(item);
            ////}

        }
    }
}
